﻿<div ng-controller="settingController">
    <div class="wrapper border-bottom white-bg page-heading">
        <div class="col-lg-pull-12">
            <ol class="breadcrumb">
                <li>基地管理</li>
            </ol>
        </div>
    </div>

    <form class="form-horizontal w5c-form" name="_form" w5c-form-validate="model.validateOptions" role="form" novalidate>
        <div class="form-group">
            <div class="col-sm-12">
                <label class="col-sm-4 control-label">马力值初始</label>
                <div class="col-sm-3">
                    <input type="text" name="user_horse_power" class="form-control input-sm" ng-model="model.user_horse_power" required>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-12">
                <label class="col-sm-4 control-label">红钻初始</label>
                <div class="col-sm-8 form-control-static">
                    {{model.user_red_drill}}
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-12">
                <label class="col-sm-4 control-label">每日红钻总发放数量</label>
                <div class="col-sm-3">
                    <input type="text" name="day_total_red_drill" class="form-control input-sm" ng-model="model.day_total_red_drill" required>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-12">
                <label class="col-sm-4 control-label">每年红钻发放数量</label>
                <div class="col-sm-3 ">
                    {{model.day_total_red_drill * 365}}
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-12">
                <label class="col-sm-4 control-label">用户总马力值（每天定时统计）</label>
                <!--<div class="col-sm-3 ">
                <input type="text" name="total_horse_power" class="form-control input-sm" ng-model="model.total_horse_power" required>
            </div>-->
                <div class="col-sm-8 form-control-static">
                    {{model.total_horse_power}}
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-12">
                <label class="col-sm-4 control-label">用户总临时马力值</label>
                <div class="col-sm-8 form-control-static">
                    {{model.snap_horse_power}}
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-12">
                <label class="col-sm-4 control-label">初始用户每日获得红钻数</label>
                <div class="col-sm-3">
                    {{(model.day_total_red_drill / model.total_horse_power * model.user_horse_power).toFixed(6)}}
                </div>
            </div>
        </div>
        <br />
        <br />
        <div class="form-group">
            <div class="col-sm-12">
                <label class="col-sm-4 control-label">每屏显示数量</label>
                <div class="col-sm-3">
                    <input type="text" name="red_drill_per_screen" class="form-control input-sm" ng-model="model.red_drill_per_screen" required>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-12">
                <label class="col-sm-4 control-label">最多允许屏数</label>
                <div class="col-sm-3 ">
                    <input type="text" name="max_screen_num" class="form-control input-sm" ng-model="model.max_screen_num" required>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-12">
                <label class="col-sm-4 control-label">红钻兑换人民币比例</label>
                <div class="col-sm-3">
                    <input type="text" name="exchange_rate" class="form-control input-sm" ng-model="model.exchange_rate" required>
                </div>
            </div>
        </div>
        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label"></label>
            <div class="col-sm-3">
                <button type="submit" w5c-form-submit="saveTokenSetting()" class="btn btn-primary btn-sm" btn-loading="psdisabled" loading-text="保存中..." ng-disabled="psdisabled">
                    <i class="fa fa-save"></i> 保存
                </button>
            </div>
        </div>
    </form>
</div>
